﻿@model Proggy.Data.Entities.PublishableNode
@{
    ViewBag.Title = "Revert";
}
<h2>@ViewBag.Title</h2>
<div class="proggy-form-div">
<h3>Revert back to published version of content #@Model.PublishableNodeId (@Model.Name)?</h3>
    <p class="red">
        Are you absolutely sure you want to revert to the already published version of this
        node? All changes you have made to the draft copy will be deleted permanently.
    </p>
    @using (Html.BeginForm())
    {
        @:@Html.ValidationSummary(false)
        @:@Html.HiddenFor(m=>m.PublishableNodeId)
        <p>
            <input type="submit" value="Revert" class="proggy-button-go" /> | 
            @Html.ActionLink("Cancel", "Index", new { success = 5, selected = Model.PublishableNodeId }, new { @class = "proggy-button-stop" }) | 
            @Html.ActionLink("Edit >>", "Edit", new { id = Model.PublishableNodeId }, new { @class = "proggy-button" })
        </p>
    }
</div>
